package com.yxhl.zoume.core.coupon.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.yxhl.zoume.R;
import com.yxhl.zoume.common.ui.activity.base.BaseActivityWithToolBar;
import com.yxhl.zoume.core.coupon.fragment.CouponShowFragment;

/**
 * 承载优惠券，个人中心进入，只负责查看
 * Created by vhawk on 2016/11/2.
 */
public class CouponActivity extends BaseActivityWithToolBar {

    public static Intent getCallingIntent(Activity activity) {
        Intent intent = new Intent(activity, CouponActivity.class);
        return intent;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setToolbarTitle(getResources().getString(R.string.coupon_title));
        setToolbarTitle("优惠券");
        addFragment(R.id.frame_activity_coupon_body, CouponShowFragment.newInstance());
    }

    @Override
    protected void onHeaderLeftClick(View view) {
        finish();
    }

    @Override
    protected void onHeaderRightClick(View view) {

    }

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_coupon;
    }

    @Override
    protected void initializeInjector() {

    }
}
